package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Order;

import java.util.Map;

public interface OrderService {
    /**
     * 添加订单
     * @param map
     * @return
     */
    Result order(Map map) throws Exception;

    /**
     * 通过id查找订单
     * @param id
     * @return
     */
    Map findById(Integer id);

    /**
     * 根据页码查找订单
     * @param queryPageBean
     * @return
     */
    PageResult findByPage(QueryPageBean queryPageBean);

    /**
     * 编辑订单
     * @param order
     * @return
     * @throws Exception
     */
    Result edit(Order order) throws Exception;

    /**
     * 删除订单
     * @param id
     * @return
     * @throws Exception
     */
    Result delete(Integer id) throws Exception;


    void uploadCheck(Integer id);
}
